home *** CD-ROM | disk | FTP | other *** search
/ Minami 78 / MINAMI78.iso / Extra / winamp53.exe / $R0 / Winamp Modern / scripts / seekshade.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2005-09-15  |  3KB  |  75 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global Group Group16;
  6. Global Slider Slider17;
  7. Global Int Int18;
  8. Global Timer Timer19;
  9. Global Text Text20;
  10.  
  11.  
  12. System.onScriptLoaded()
  13. {
  14. Group16 = System.getScriptGroup();
  15. Slider17 = Group16.findObject(( "shadeSeekerGhost"));
  16. Text20 = Group16.findObject(( "SongtickerShade"));
  17. Timer19 = ( new Timer);
  18. Timer19.setDelay(1000);
  19. return Null;
  20. }
  21.  
  22. Timer19.onTimer()
  23. {
  24. Text20.setText(( ""));
  25. Timer19.stop();
  26. return Null;
  27. }
  28.  
  29. System.onScriptUnloading()
  30. {
  31. delete Timer19;
  32. return Null;
  33. }
  34.  
  35. Slider17.onSetPosition(int newpos)
  36. {
  37. Int Int29;
  38. Float Float28;
  39. Float Float25;
  40. if(Int18) {
  41. Float25 = newpos;
  42. Float25 = ( ( Float25 / 255) * 100);
  43. Float28 = System.getPlayItemLength();
  44. if(( Float28 != 0)) {
  45. Int29 = ( ( Float28 * Float25) / 100);
  46. Timer19.start();
  47. Text20.setText(( ( ( ( ( ( ( "SEEK\:") + System.integerToTime(Int29)) + ( "\/")) + System.integerToTime(Float28)) + ( "\ \(")) + System.integerToString(Float25)) + ( "\%\)\ ")));
  48. }
  49. }
  50. return Null;
  51. }
  52.  
  53. Slider17.onLeftButtonDown(int x, int y)
  54. {
  55. Int18 = 1;
  56. return Null;
  57. }
  58.  
  59. Slider17.onLeftButtonUp(int x, int y)
  60. {
  61. Int18 = 0;
  62. Timer19.start();
  63. Text20.setText(( ""));
  64. return Null;
  65. }
  66.  
  67. Slider17.onSetFinalPosition(int pos)
  68. {
  69. Timer19.start();
  70. Text20.setText(( ""));
  71. return Null;
  72. }
  73.  
  74.  
  75.